public class J03more {
    /*
    1, arr = {1,3,5}
    arr = {
        {1,1,1},
        {2,2,2}
    }

    arr = {
        {
            {1,1,1},
            {2,2}
        },
        {
            {44,66,88,99,77},
            {33,22}
        }
    }

    String[] arr = {"","",""};
    String[][] arr = {
        {"","",""},
        {"","",""},
        {"","",""}
    }
    String[][][] arr = {
        {
            {}
         }
    }

    student
        姓名
            高新区
            金水区

        ｛
        ｝



     */
    public static void main(String[] args) {
        //遍历3维数组
        int[][][] arr = new int[3][4][5];
        for (int i = 0; i < arr.length; i++) {
//            System.out.println(arr[i]);
            for (int j = 0; j < arr[i].length; j++) {
                for (int k = 0; k < arr[i][j].length; k++) {
                    System.out.print(arr[i][j][k]+",");
                }
                System.out.println();
            }
        }
        System.out.println("=====");
        //长度固定，无法添加元素
        /*
        数组不好用，
            js数组，列表
         */
        int[] arr1 = {1,3,5};
//        arr1[3] = 100;
//        System.out.println(arr1[3]);

        arr1 = new int[]{1,3,5,7};
        System.out.println(arr1[3]);
    }
}
